package exo3;

import exo3.Employe;

public class EntrepriseJ {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try { //Ce qui ce passe si tout va bien (+13€ et -60h) 
			Employe e1 = new Employe("John", 7.5, 35);
			System.out.println(e1);
		}
		catch (Exception e) {//si erreur faire la partie exception du constructeur
			System.err.println(e);
		}
		
		try { 
			Employe e2 = new Employe("Cécile", 8.2, 47);
			System.out.println(e2);
		}
		catch (Exception e) {
			System.err.println(e);
		}
		
		try { 
			Employe e3 = new Employe("Pierre", 10.00, 73);
			System.out.println(e3);
		}
		catch (Exception e) {
			System.err.println(e);
		}
		
		try {
			Employe e4 = new Employe("Laurent", 25.00, 60);
			System.out.println(e4);
		}
		catch (Exception e) {
			System.err.println(e);
		}
		
		try {
			Employe e5 = new Employe("Laurent", 14.00, 45);
			System.out.println(e5);
		}
		catch (Exception e) {
			System.err.println(e);
		}
	}

}
